<?php
/**
 * Created by PhpStorm.
 * User: ari
 * Date: 11/20/14
 * Time: 8:02 PM
 */
namespace BC\User\Role;

use BC\PGP\Commands\PGPGenerateKeyPairCommand;

class RoleCreate extends PGPGenerateKeyPairCommand
{
	public function __construct($roleGroup, $passphase = null, Array $args = array()) {
		parent::__construct($roleGroup, $passphase, $args);
		$this->setHomeDir(RoleConfig::$RoleKeyRingPath);
	}

	public function getRoleInfo() {
		$Search = new RoleSearch($this->getKeyIDs());
		$Search = $Search->queryOne();
		return $Search;
	}

}